<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Email Send form</title>
</head>
<body>
<center>
        <h1>Struts2 - Send e-mail with attachment</h1>
<s:form action="doSendEmail" enctype="multipart/form-data" method="post">
<table border="0" width="80%" align="center">

<tr>
<td>
<s:textfield name="recipient" label="Recipient Address" size="65"></s:textfield>
</td>
</tr>
<tr>
                    <td>
                        <s:textfield name="subject" size="65" label="Subject" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <s:textarea cols="50" rows="10" name="message" label="Message" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <s:file name="fileUpload" size="60" label="Attach file" />
                    </td>
                </tr>               
                <tr>
                    <td>
                        <s:submit value="Send E-mail" align="center" />
                    </td>
                </tr>
</table>



</s:form>
</center>
</body>
</html>